import request from '@/utils/request'

const baseUrl = '/constellation-correlate-analyse/constellation-correlate-analyse/v1.0/'
export const getRelationBindPage = (params) =>
  request({
    url: baseUrl + '/timeSeries/param/bind/bindingPage',
    method: 'get',
    params
  })

export const getBindById = (id) => request.get(baseUrl + `/timeSeries/param/bind/getBindById/${id}`)
export const getBindBySatId = (id) => request.get(baseUrl + `/timeSeries/param/bind/param/${id}`)

export const keyParamBind = (data) => request.post(`/timeSeries/param/bind/paramBind`, data)
export const getBindList = (data) => request.get(baseUrl + '/timeSeries/param/bind/paramBindingList', data)
export const removeBind = (id) => request.delete(baseUrl + `/timeSeries/param/bind/removeBinding/${id}`)
export const updateBind = (data) => request.put(baseUrl + '/timeSeries/param/bind/updateBinding', data)
